aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenStringAddTests]/[method:stringAddIsCompiledToCallToRuntimeStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
blob: e7e8e6bad08fd81ce19017baa5c7fe5a505fc6ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.wasm:	file format wasm 0x1

Section Details:

Type[2]:
 - type[0] (i32, i32) -> i32
 - type[1] () -> nil
Import[3]:
 - table[0] type=funcref initial=0 <- env.__indirect_function_table
 - func[0] sig=0 <shed__runtime__string_add> <- env.shed__runtime__string_add
 - memory[0] pages: initial=0 <- env.__linear_memory
Function[1]:
 - func[1] sig=1 <f>
Code[1]:
 - func[1] size=8 <f>
Custom:
 - name: "linking"
  - symbol table [count=2]
   - 0: F <shed__runtime__string_add> func=0 [ undefined explicit_name binding=global vis=default ]
   - 1: F <f> func=1 [ binding=global vis=default ]
Custom:
 - name: "reloc.CODE"
  - relocations for section: 3 (Code) [1]
   - R_WASM_FUNCTION_INDEX_LEB offset=0x000008(file=0x00008e) symbol=0 <shed__runtime__string_add>
Custom:
 - name: "name"
 - func[0] <shed__runtime__string_add>
 - func[1] <f>

Code Disassembly:

00008c func[1] <f>:
 00008d: 10 80 80 80 80 00          | call 0 <shed__runtime__string_add>
 000093: 0b                         | end